#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
int main()
{
	float b = 0;
	int t = 0;
	double sum;
	scanf("%f %d", &b, &t);
	double n;
	switch (t)
	{
	case 1:
		n = 0.00315;
		sum = b + b * n * t * 12;
		printf("%.2f", sum);
		break;
	case 2:
		n = 0.00330;
		sum = b + b * n * t * 12;
		printf("%.2f", sum);
		break;
	case 3:
		n = 0.00345;
		sum = b + b * n * t * 12;
		printf("%.2f", sum);
		break;
		printf("input error!\n");
	}
	return 0;

}